<?php
/**
 * Created by Kenny.
 * Date: 9/11/13
 * Time: 10:59 PM
 * To change this template use File | Settings | File Templates.
 */

class InforForm extends CFormModel {
    public $full_name;
    public $depart_id;
    public $course_id;

    public function rules()
    {
        return array(
            array('full_name, depart_id', 'required'),
            array('full_name', 'length', 'max'=>512),
            array('course_id, depart_id', 'numerical', 'integerOnly'=>true),
        );
    }

    public function attributeLabels()
    {
        return array(
            'full_name' => 'Họ tên',
            'depart_id' => 'Đơn vị công tác',
            'course_id' => 'course_id'
        );
    }
}